# 打开文件
file = open('test', encoding='utf-8')
file2 = open('test2', 'w', encoding='utf-8')

# 对一个文件读,对另一个文件写
text = file.read()
file2.write(text)

# 关闭文件
file.close()
file2.close()
